package com.ntschy.common.core.entity.vo;

import lombok.*;

/**
 * 路由显示信息
 *
 * @author ezreal_geng
 */
@Getter
@Setter
public class MetaVo {
    /**
     * 设置该路由在侧边栏和面包屑中展示的名字
     */
    private String title;

    /**
     * 激活菜单
     */
    private String activeMenu;

    /**
     * 设置该路由的图标，对应路径src/assets/icons/svg
     */
    private String icon;

    /**
     * 设置为true，则不会被 <keep-alive>缓存
     */
    private boolean noCache;

    /**
     * 设置菜单是否隐藏
     */
    private boolean hidden;

    public MetaVo() {
    }

    public MetaVo(String title, String icon) {
        this.title = title;
        this.icon = icon;
    }

    public MetaVo(String title, String icon, boolean noCache, boolean hidden) {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
        this.hidden = hidden;
    }

    public MetaVo(String title, String icon, boolean noCache, boolean hidden, String activeMenu) {
        this.title = title;
        this.icon = icon;
        this.noCache = noCache;
        this.hidden = hidden;
        this.activeMenu = activeMenu;
    }
}
